CFLAGS=-Wall -pedantic -std=c99
#CFLAGS+=-O3

foo: rAttack.o getKfromK3.o
	gcc $(LDFLAGS) $^ -o $@  $(LDLIBS)

rAttack.o: rAttack.c 
	gcc $(CFLAGS) -c $< -o $@

getKfromK3.o: getKfromK3.c getKfromK3.h
	gcc $(CFLAGS) -c $< -o $@

.PHONY: clean distclean

clean:
	rm -f *.o *~ 

distclean:
	rm -f foo
